import config from '../config/api/detail'
import http from '../utils/http'

export const getGoods = (id) =>{
    /* if(!id){
        return Promise.reject('id没有传')
    } */
    return http.post(config.getGoods  )
}

export const getRec = (id) =>{
    /* if(!id){
        return Promise.reject('id没有传')
    } */
    return http.get(config.getRec  )
}

export const getPostageTitle = () =>{
    return http.get(config.getPostageTitle)
}

export const getPurchase = () => {
    return http.get(config.getPurchase)
}

export const getChoiceness = (pageNo = 1) => {
    return http.get(config.getChoiceness + pageNo)
}